package com.itheima.service;

import java.util.List;

public interface OrderService {

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderInfo;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface OrderService {


    PageResult findByPage(QueryPageBean queryPageBean) throws Exception;

    List<String> findAllSetmealName();

    List<Setmeal> findAll();

    Result add(OrderInfo orderInfo, Integer[] setmealIds) throws Exception;

    Map<String, Object> findById(Integer id);

    List<Integer> findSetmealById(Integer id);

    Result edit(Order order, Integer[] setmealIds);

    void delete(Integer id);

    void updateStatus(Integer id);

    Result order(Map map) throws Exception;

    Map findById(Integer id) throws Exception;

    List<Integer> findOrderByDate(List<String> months);

    List<Integer> findReachByDate(List<String> months);

    List<Integer> findSetmealIdByDate(List<String> months);

    List<Integer> findSetmealData(String start, String end);
}
